package com.tangyuan.ai.controller;


import com.tangyuan.ai.entity.vo.AiModelVo;
import com.tangyuan.ai.service.AiModelService;
import com.tangyuan.common.result.Result;
import com.tangyuan.dto.PageDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("ai/model")
public class AiModelController {

    @Autowired
    AiModelService aiModelService;


    @GetMapping("getPageAiModel")
    public Result<List<AiModelVo>> getPageAiModel(@ModelAttribute PageDto dto) {
        return Result.ok(aiModelService.getPageAiModel(dto));
    }
}
